package org.nanotek.persistence.jpa.base;

import javax.validation.constraints.NotNull;

import org.nanotek.base.StringBase;
import org.nanotek.base.StringPositionBase;

public class StringPositionBaseBuilder {

	private StringPositionBase stringPosition =  new StringPositionBase();
	
	public StringPositionBaseBuilder()
	{}
	
	
	public StringPositionBaseBuilder setValue (@NotNull String value) 
	{ 
		stringPosition.setStringBase(new StringBase(value));
		return this;
	}
	
	public StringPositionBaseBuilder setPosition (@NotNull Integer position) 
	{ 
		stringPosition.setPosition(position);
		return this;
	}
	
	public StringPositionBase build()
	{ 
		return stringPosition;
	}
	
}
